<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>hello <span th:text="${name}">world</span></h1>

<h1>Logged user: <span sec:authentication="name">Bob</span></h1>

<h1>Roles: <span sec:authentication="principal.authorities">[ROLE_USER, ROLE_ADMIN]</span></h1>

<ul>
    <li><a href="#" th:href="@{'/user/list'}">user</a></li>
    <li><a href="#" th:href="@{'/role/list'}">role</a></li>
    <li><a href="#" th:href="@{'/res/list'}">resource</a></li>
</ul>

</body>
</html>